package primes;

public class DefaultPrimeCalculator implements PrimeCalculator {

	private Prime prime;
	
	public DefaultPrimeCalculator() {
		this.prime = new DefaultPrime();
	}
	
	@Override
	public void prime(long[] numbers, boolean[] results, int start, int end) {
		for (int i = start; i <= end; i++) {
			results[i] = prime.prime(numbers[i]);
		}
	}
}
